//
//  main.m
//  CarParts-Split
//
//  Created by quentin on 15/8/26.
//  Copyright (c) 2015年 QuentinLabs. All rights reserved.
//

#import "Car.h"
#import "Tire.h"
#import "Engine.h"
#import "Slant6.h"
#import "AllWeatherRadial.h"



int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
//        NSLog(@"Hello, World!");
        Car * car = [Car new ];
//        Engine* engine = [Engine new];
        Engine* engine = [Slant6 new];
        [car setEngine:engine];
        for (int i = 0; i < 4; ++i) {
//            Tire* tire = [Tire new];
            Tire* tire = [AllWeatherRadial new];
            [car setTire:tire atIndex:i];
        }
        [car print];
    }
    return 0;
}
